package com.qingke.easyjava.demo.beanfactory;

public class BeanFactoryDemo {

	public static void main(String[] args) {
		MyBeanFactory factory=new MyBeanFactory();
		
		MyBean bean1=factory.getBean("helloBean",MyBean.class);
		bean1.hello();
		
		MyBean bean2=factory.getBean("helloBean",MyBean.class);
		bean2.hello();
		
		
		System.out.println("bean1 equals bean2:"+(bean1==bean2));

	}

}
